﻿<!DOCTYPE html>
<html>
<head>
  <title>Ajax</title>
<%= stylesheet_link_tag 'scaffold' %>
  <%= yield :head %>
  <%= csrf_meta_tag %>  
<style type="text/css">
<!-- 
body{
margin:0;
padding:0;
}
#user_nav{
	height:30px;
	background-color:#FFffFF;
	width:auto;
	lis-style:none;
	margin: 0px;
	clip: rect(10px,auto,auto,auto);
	text-align: right;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 3px;
	padding-left: 0px;
	border-bottom-style: solid;
	border-bottom-color: #FF0000;
}
	a.user_a:link {color:   #00dd00; }
    a.user_a:visited{color:   #3366FF;}
    a.user_a:hover {color:   #FF9966; }
    a.user_a:active {color:   #FF9966; }  
  -->
</style>
</head>
<body>
<div id = "user_nav" >
  <% if user_signed_in? %>
    Signed in as <%= current_user.email %>. Not you?
    <%= link_to "Sign out", destroy_user_session_path %>
  <% else %>
    <%= link_to "Sign up", new_user_registration_path %> or <%= link_to "sign in", new_user_session_path,:class => 'user_a'  %> &nbsp &nbsp &nbsp      
                           
  <% end %>
</div>

<%= yield %>
 <%= yield :scripts %>
</body>
</html>
